﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.db2
{
	// Token: 0x020001E9 RID: 489
	public class TDb2SqlVariableDeclaration : TCustomDb2Stmt
	{
		// Token: 0x0600107A RID: 4218 RVA: 0x0030CFE6 File Offset: 0x0030B1E6
		public TDb2SqlVariableDeclaration(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdb2sqlvariabledeclaration;
		}

		// Token: 0x0600107B RID: 4219 RVA: 0x0030CFFA File Offset: 0x0030B1FA
		internal override void buildsql()
		{
		}

		// Token: 0x0600107C RID: 4220 RVA: 0x0030CFFC File Offset: 0x0030B1FC
		internal override void clear()
		{
		}

		// Token: 0x0600107D RID: 4221 RVA: 0x0030CFFE File Offset: 0x0030B1FE
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x0600107E RID: 4222 RVA: 0x0030D005 File Offset: 0x0030B205
		internal override void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x0600107F RID: 4223 RVA: 0x0030D007 File Offset: 0x0030B207
		internal override int doparsestatement(TCustomSqlStatement psql)
		{
			return 0;
		}

		// Token: 0x06001080 RID: 4224 RVA: 0x0030D00C File Offset: 0x0030B20C
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TDeclareSqlNode tdeclareSqlNode = (TDeclareSqlNode)this.rootNode;
			base.doParseStatement(psql);
			this.variables = tdeclareSqlNode.Variables;
			return 0;
		}

		// Token: 0x17000307 RID: 775
		// (get) Token: 0x06001081 RID: 4225 RVA: 0x0030D044 File Offset: 0x0030B244
		// (set) Token: 0x06001082 RID: 4226 RVA: 0x0030D04C File Offset: 0x0030B24C
		public virtual TDeclareVariableList Variables
		{
			get
			{
				return this.variables;
			}
			set
			{
				this.variables = value;
			}
		}

		// Token: 0x06001083 RID: 4227 RVA: 0x0030D055 File Offset: 0x0030B255
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06001084 RID: 4228 RVA: 0x0030D065 File Offset: 0x0030B265
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			this.variables.accept(v);
			v.postVisit(this);
		}

		// Token: 0x04001396 RID: 5014
		private TDeclareVariableList variables;
	}
}
